<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>评论管理</title>
    
    <link rel="stylesheet" href="../assets/lib/layui/css/layui.css">
</head>
<body>
    <div class="layui-card">
        <div class="layui-card-header">评论管理</div>
        <div class="layui-card-body">
            <table class="layui-table">
                <colgroup>
                  <col width="100">
                  <col width="300">
                  <col width="500">
                  <col width="400">
                  <col width="150">
                </colgroup>
                <thead>
                  <tr>
                    <th>ID</th>
                    <th>评论人</th>
                    <th>评论内容</th>
                    <th>评论时间</th>
                    <th>操作</th>
                  </tr> 
                </thead>
                <tbody>
                  <tr>
                    <!-- <td>1</td>
                    <td>张张</td>
                    <td>人生就像是一场修行</td>
                    <td>2016-11-29</td>
                    <td>
                        <button type="button" class="layui-btn layui-btn-sm layui-btn-danger" id="del">删除</button></td>
                  </tr> -->
                </tbody>
                 
              </table>

        </div>
        <!-- 设置评论列表的模板 -->
        <script type="text/html" id="tpl-comment">
            {{each data val}}
            <tr>
                <td>{{val.id}}</td>
                <td>{{val.uname}}</td>
                <td>{{val.content}}</td>
                <td>{{val.cdate|dateFormat}}</td>
                <td>
                    <button type="button" data-id="{{val.id}}" class="layui-btn layui-btn-sm layui-btn-danger">删除</button></td>
            </tr>
            {{/each}}
        </script>
              
      </div>
      <script src="../assets/lib/jquery.js"></script>
      <script src="../assets/lib/template-web.js"></script> 
      <script src="../assets/js/common.js"></script>
      <script src="../assets/lib/layui/layui.all.js"></script>
      
      <script src="../assets/js/resourse/comment.js"></script>

</body>
</html>